<template>
    <div class="frame-sider-container">
        <admin-sider-menu v-for="item,index in menu" :key="index" :item="item" v-power="item.power"  ></admin-sider-menu>
    </div>
    
</template>

<script>
export default {
    data(){
        
        let menu = [
            {
                title:'首页',
                icon:'fa-home',
                power:'shop',
                url:this.$url({app:'shop',controller:'admin.index',action:'index'})
            },
            {
                title:'订单',
                icon:'fa-print',
                power:'shop.order',
                url:this.$url({app:'shop',controller:'admin.order',action:'index'})
            },
            {
                title:'发货',
                icon:'fa-truck',
                power:'shop.block',
                url:this.$url({app:'shop',controller:'admin.block',action:'index'})
            },
            {
                title:'评价',
                icon:'fa-star',
                power:'shop.block',
                url:this.$url({app:'shop',controller:'admin.block',action:'index'})
            },
            {
                title:'商品',
                icon:'fa-shopping-bag',
                power:'web.part',
                url:this.$url({app:'shop',controller:'admin.goods',action:'index'})
            },
            {
                title:'会员',
                icon:'fa-user',
                power:'shop.member',
                url:this.$url({app:'shop',controller:'admin.member',action:'index'})
            },
            {
                title:'商品分类',
                icon:'fa-navicon',
                power:'shop.cate',
                url:this.$url({app:'shop',controller:'admin.cate',action:'index'})
            },
            {
                title:'促销',
                icon:'fa-gift',
                power:'web.block',
                children:[
                    {icon:'fa-bolt',title:'秒杀'},
                    {icon:'fa-ticket',title:'优惠卷',url:this.$url({app:'shop',controller:'admin.coupon',action:'index'})},
                    {icon:'fa-percent',title:'满减'}
                ]
            },
           
            {
                title:'小程序',
                power:'shop.site',
                icon:'fa-mobile',
                children:[{
                    title:'页面',
                        icon:'fa-file-text-o',
                        power:'shop.site.page',
                        url:this.$url({app:'shop',controller:'admin.page',action:'index'})
                    },{
                        title:'自定义模块',
                        icon:'fa-puzzle-piece',
                        power:'shop.site.model',
                        url:this.$url({app:'shop',controller:'admin.model',action:'index'})
                    },
                ]
            },
            {
                title:'设置',
                power:'shop.setting',
                icon:'fa-gears',
                children:[
                    {
                        icon:'fa-gear',
                        title:'基础设置',
                        power:'shop.setting.base',
                        url:this.$url({app:'shop',controller:'admin.setting',action:'index'})
                    },
                    {
                        icon:'fa-diamond',
                        title:'会员等级',
                        power:'shop.setting.memberLevel',
                        url:this.$url({app:'shop',controller:'admin.MemberLevel',action:'index'})
                    },{
                        title:'标签',
                        icon:'fa-tag',
                        power:'shop.setting.tag',
                        url:this.$url({app:'shop',controller:'admin.goodsTag',action:'index'})
                    },

                    {   
                        title:'模型',
                        icon:'fa-cube',
                        power:'shop.setting.model',
                        url:this.$url({app:'shop',controller:'admin.model',action:'index'})
                    },
                    {
                        title:'规格',
                        icon:'fa-file-text-o',
                        power:'shop.setting.spec',
                        url:this.$url({app:'shop',controller:'admin.spec',action:'index'})
                    },
                    {
                        title:'型号',
                        icon:'fa-sliders',
                        power:'shop.setting.variant',
                        url:this.$url({app:'shop',controller:'admin.variant',action:'index'})
                    },
                    {
                        title:'支付方式',
                        icon:'fa-money',
                        power:'shop.setting.payway',
                        url:this.$url({app:'shop',controller:'admin.payway',action:'setting'})
                    },
                    {
                        title:'发货方式',
                        icon:'fa-send-o',
                        power:'shop.setting.send',
                        url:this.$url({app:'shop',controller:'admin.send',action:'setting'})
                    },
                ]
               
            }
        ];
        
        return {
            menu,
            tree:[],
            loading:false
        }
    },
    methods:{
    },
    mounted(){
       
    }
}
</script>

<style>
.bi-icon.fa.fa-mobile{
    font-size: 22px;
}
</style>